import { Message } from 'element-ui'

export default {
  notify (type, message, title, options) {
    const defaultOpts = {
      type: type,
      title: title || '通知',
      message: message,
      offset: 360
    }
    return Message(Object.assign(defaultOpts, options || {}))
  }
}
